package models

import "gorm.io/gorm"

type Login struct {
	gorm.Model
	Username string `gorm:"varchar(30)" json:"username"`
	Password string `gorm:"varchar(30)" json:"password"`
}
type Commodity struct {
	gorm.Model
	Title   string `gorm:"varchar(30)" json:"title"`
	Content string `gorm:"varchar(30)" json:"content"`
}
type Comment struct {
	gorm.Model
	Uid     int    `gorm:"int" json:"uid"`
	Cid     int    `gorm:"int" json:"cid"`
	Content string `gorm:"varchar(30)" json:"content"`
}
